<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class feedback_model extends MY_Model {
	protected $table = 'feedback';
	// 设定
	public function set($id,$arr)
	{
		$this->db->set($arr)
			-> where(array('id'=>$id))
			-> update($this->table);
		return $this->db->affected_rows();
	}
	/**
	 * 用户未进行审核的数量
	 */
	public function get_status_nums(){
		$query = $this->db
			->select('count(*) as total')
			->from($this->table)
			->where('solve',0)
			->get();
		return $query->row_array();
	}
}